package com.example.buildtable.pojo;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(autoResultMap = true)
public class RoleMenu {
    @TableId(type = IdType.AUTO)
    private Integer roleMenuId;
    @TableField(value="role_id",target = Role.class)
    private Integer roleId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private Role role;
    @TableField(value="column_menu_id",target = ColumnMenu.class)
    private Integer columnMenuId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private ColumnMenu columnMenu;
}
